package com.ruoyi.common.base.biz.controller.v3;

import com.github.pagehelper.PageInfo;
import com.ruoyi.common.base.biz.service.biz.BaseBizService;
import com.ruoyi.common.core.domain.BizBaseEntity;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * BaseController
 *
 * @author HHKJ-SERVER-ZJ
 * @since 2024/1/25 16:23
 */
public class BaseController<E extends BizBaseEntity, Req extends E, Res extends E,
        BizS extends BaseBizService<E, Req, Res>>
        extends com.ruoyi.common.base.biz.controller.v2.BaseController<E, Req, Res, BizS> {

    @Override
    public TableDataInfo paging(@RequestBody Req req) {
        PageInfo<Res> pageInfoRes = this.getBizService().paging(req);
        return getDataTable(pageInfoRes);
    }
}
